package com.wlc.base.enums;

/**
 * 使用枚举类来封装接口返回结果 状态码和状态码信息
 */
public enum ResultEnum {

    SUCCESS(2000, "成功le222222"), FAIL(3000, "失败"),SSSS(2001,"找不到目标文件！");
    private int code;
    private String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
